<?php

namespace Mall\Model;

use Common\Model\BaseModel;
use Common\Model\ModelException;
use Util\ModelUtils;

class OrderGoodsModel extends BaseModel
{
    protected $_auto = [
    ];

    protected $_validate = [
    ];

    protected $_scope = [
    ];

   

    protected function _after_find(&$record, $options)
    {
        $record['photo'] = explode(',', $record['photo']);
        $record['details'] = html_entity_decode($record['details']);
    }

    protected function _after_select(&$records, $options)
    {
        foreach ($records as &$record) {
            $record['photo'] = explode(',', $record['photo']);
            $record['details'] = html_entity_decode($record['details']);
        }
    }
    
}
